<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('审批')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-edit">
        <div class="form-group">
            <label class="col-sm-3 control-label">审批意见：</label>
            <div class="col-sm-8">
                <select name="auditStatus" class="form-control m-b">
                    <option value="true">同意</option>
                    <option value="false">拒绝</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">批注：</label>
            <div class="col-sm-8">
                <textarea name="comment" class="form-control"></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = "/business/carPackageAudit";
    $("#form-leave-edit").validate({
        focusCleanup: true
    });
    function submitHandler() {
        if ($.validate.form()) {
            var taskId = [[${taskId}]];
            $.operate.save(prefix + "/complete/" + taskId, $('#form-edit').serialize());
        }
    }
</script>
</body>
</html>